include "../model/TRecord.thrift"
include "../model/TQuery.thrift"
namespace java com.iqiyi.pps.epg.api.server.web.record

 service RecordWebService {
         TQuery.TResponse addRecordPlan(1:TRecord.TRecordPlan entity);
         TQuery.TResponse editRecordPlan(1:TRecord.TRecordPlan entity);
         bool deleteRecordPlan(1:i64 id, 2:string opUser);
         TRecord.TRecordPlan getRecordPlanById(1:i64 id);
         TRecord.TRecordPlanPage findTRecordPlanPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
         TRecord.TRecordPlanLibraryPage findTRecordPlanLibraryPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);

         TRecord.TRecordColSimplePage findTRecordColSimplePage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
         TRecord.TRecordChannelSimplePage findTRecordChannelSimplePage(1:TQuery.TPage page, 2:TQuery.TFilter filter);

         TQuery.TResponse addRecordChannel(1:TRecord.TRecordChannel entity);
         TQuery.TResponse editRecordChannel(1:TRecord.TRecordChannel entity);
         bool deleteRecordChannel(1:i64 id, 2:string opUser);
         TRecord.TRecordChannelPage findTRecordChannelPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);

         TQuery.TResponse editRecordTask(1:TRecord.TRecordTaskData entity);
         TRecord.TRecordTaskDataPage findTRecordTaskPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
         TRecord.TRecordTaskLibraryPage findTRecordTaskLibraryPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);

//          signal
         TRecord.TRecordSignalPage findTRecordSignalPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
         TQuery.TResponse addRecordSignal(1:TRecord.TRecordSignal entity);
         TQuery.TResponse deleteRecordSignal(1:i64 id, 2:string opUser);
         TQuery.TResponse editRecordSignal(1:TRecord.TRecordSignal entity);
         TRecord.TRecordSignal getRecordSignalById(1:i64 id);

         TRecord.TRecordChannelSignalPage findTRecordChannelSignalPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
         TQuery.TResponse addRecordChannelSignal(1:TRecord.TRecordChannelSignal entity);
         bool deleteRecordChannelSignal(1:i64 id, 2:string opUser);
         TQuery.TResponse editRecordChannelSignal(1:TRecord.TRecordChannelSignal entity);
         TRecord.TRecordChannelSignal getRecordChannelSignalById(1:i64 id);
         TQuery.TResponse startRecordChannelSignal(1:i64 id, 2:string opUser);
         TQuery.TResponse stopRecordChannelSignal(1:i64 id, 2:string opUser);


         TRecord.TRecordChannelSignalTablePage findTRecordChannelSignalTablePage(1:TQuery.TPage page, 2:TQuery.TFilter filter);

        //recordVideo
         TQuery.TResponse updateRecordVideoStatus(1:i64 signalId,2:i64 taskId, 3: i64 videoId, 4:i32 videoStatus);
         TQuery.TResponse updateRecordTaskStatus(1:i64 taskId,2:i32 videoStatus);



 }
